#include<encode_manager.h>

#include <string.h>

	  

static int IsUTF8Encode(unsigned char* memory)
{
	char prefix_buffer[] = {0xEF, 0xBB, 0xBF};
	unsigned char* TempMem = memory;

	if(strncmp(TempMem, prefix_buffer, 3) == 0)
	{
		return 1;
	}

	return 0;
}


static EncodeOpr g_tUTF8EncodeOpr = {
	.name = "UTF-8",
	.IsEncodeSupport = IsUTF8Encode;
};

void UTF8EncodeOprRegister(void)
{
	RegisterEncodeOpr(&g_tUTF8EncodeOpr);
}

